package org.idea.eaglemq.common.event;

import org.idea.eaglemq.common.event.model.Event;

/**
 * @author: LunBoWang
 * @description:
 * @date: 2025/5/6 下午8:32
 * @version: 1.0
 */
public interface Listener<E extends Event> {

    /**
     * 回调通知
     *
     * @param event
     */
    void onReceive(E event) throws Exception;
}
